/**
 * This class returns an ArrayList structure with a status code.
 */
package org.hackystat.ui.telemetryviewer.client.common;

import java.util.ArrayList;
import java.util.Map;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * @author David J. Nickles
 *
 */
public class BasicConveyor implements IsSerializable {
  
  /** 
   * This field is a List whose entries must always contain Lists of Strings.
   *  
   * @gwt.typeArgs <java.util.ArrayList<java.lang.String>>
   */
  private ArrayList lists;
  
  /** 
   *  This field is a List that must always contain Strings.
   *  
   *  @gwt.typeArgs <java.lang.String, java.lang.String>
   */
  private Map map;
  private String status;

  /**
   * Get the status string associated with this dataset.
   * @return TRUE if getData was successful or error string if it was not.
   */
  public String getStatus() {
    return status;
  }

  /**
   * Set the status string associated with this dataset.
   * @param status TRUE if getData was successful or error string if it was not.
   */
  public void setStatus(String status) {
    this.status = status;
  }

  /**
   * @return the streams of this chart.
   * 
   * @gwt.typeArgs <java.util.ArrayList<java.lang.String>>
   */
  public ArrayList getLists() {
    return lists;
  }

  /**
   * @param lists the lists to set.
   * 
   * @gwt.typeArgs lists <java.util.ArrayList<java.lang.String>>
   */
  public void setLists(ArrayList lists) {
    this.lists = lists;
  }
  
  /**
   * @return an array of two lists for the project property keys and values.
   */
  public Map getMap() {
    return map;
  }
  
  /**
   * @param map list for the project.
   */
  public void setMap(Map map) {
    this.map = map;
  }

}
